<%@page pageEncoding="utf-8" 
	import="java.util.*,entity.*"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>emp_list</title>
<style>
	table{
		border:1px solid red;
		border-collapse:collapse;
	}
	td{
		border:1px solid red;
	}		
</style>
</head>
<body>
	<table>
		<tr>
			<td>编号</td>
			<td>姓名</td>
			<td>职业</td>
			<td>薪水</td>
		</tr>	
	<%
		List<Emp> list=
			(List<Emp>)request.getAttribute("emps");
		for(Emp e:list){
		%>
		<tr>
			<td><%=e.getEmpno() %></td>					
			<td><%=e.getName() %></td>					
			<td><%=e.getJob() %></td>					
			<td><%=e.getSal() %></td>					
		</tr>
		<%					
		}
	%>	

	</table>
</body>

</html>